<h2>Edit <%= resource_name.to_s.humanize %></h2>


  <div class="field">
   <label><%= t("邮箱") %></label><br />
  <%= @user.email %>
 </div>
     <div class="field">
   <label><%= t("昵称") %></label><br />
  <%= @user.username %>
  </div>

<%if false%> 


<%end%>
<br>
<br>

<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
  <%= render "devise/shared/error_messages", resource: resource %>

   <div class="field">
    <%= f.label "联系方式" %><br />
    <%= f.text_field :contact, autofocus: true, autocomplete: "contact" %>
  </div>

    <div class="field">
    <%= f.label "备注" %><br />
    <%= f.text_area :note, autofocus: true, autocomplete: "note" %>
  </div>

  <div class="actions">
    <%= f.submit "保存" %>
  </div>
<% end %>



<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
  <div class="field">
    <%= f.label "二维码" %><br />
    <%= f.file_field :qrcode %>
  </div>

  <div class="actions">
    <%= f.submit "保存二维码" %>
  </div>

<% end %>


<p>不满意？ <%= button_to "永久删除", registration_path(resource_name), data: { confirm: "确定？" }, method: :delete %></p>

<%= link_to "返回", :back %>
